package com.xbongbong.saas.model;

import com.xbongbong.saas.domain.entity.ExpressInformationEntity;
import com.xbongbong.saas.domain.entity.SelectedExpressEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface ExpressInformationModel {
   Long insert(ExpressInformationEntity entity);

   void insertBatch(List<ExpressInformationEntity> list);

   List<ExpressInformationEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(ExpressInformationEntity entity);

   ExpressInformationEntity getByKey(Long key, String corpid);

   void updateBatchDel(List<Long> list, String corpid);

   /**
    * 批量更新实体
    */
   void updateBatch(List<ExpressInformationEntity> list, String corpid);

   /**
    * @Author: wujian
    * @Description: 根据快递公司code获取实体
    * @Date: 下午7:19 2021/2/23
    * @Param: [corpid, code]
    * @return: com.xbongbong.saas.domain.entity.ExpressInformationEntity
    **/
   ExpressInformationEntity getByCode(String corpid, String codexpressCodee);
}
